#ifndef fbext_NoBuiltinInstanciations
#define fbext_NoBuiltinInstanciations() 1
#endif
#ifndef FBEXT_NO_LIBJPG
#define FBEXT_NO_LIBJPG 1
#endif
#include once "ext/containers/array.bi"
#include once "ext/graphics/sprite.bi"

enum ObjectState explicit
	none
	hover
end enum



type object

	name as string
	sdesc as string
	ldesc as string
	weight as ubyte
	value as uinteger
	
	pixmap as ext.gfx.Sprite ptr
	
	declare constructor()
	declare constructor( byref rhs as const object )
	declare constructor( byref _name as string, byref _sdesc as string="", byref _ldesc as string ="", byval _weight as ubyte=255, byval _value as uinteger = 0)
	declare operator Let ( byref rhs as const object )
	declare destructor()
	
end type

#define odeclare fbext_TDeclare( fbext_Array, ((object)) )
odeclare
